	$('#jubao').on('click', function(event){
		event.preventDefault();
		 var height=(window.innerHeight > 0) ? window.innerHeight : screen.height; 
		 var relheight=(height-232)/2;
		$('#cd-popup1').addClass('is-visible');
		$("#relheight1").css('margin-top',relheight);
		
	});
	$('#shoucang').on('click', function(event){
		event.preventDefault();
		 var height=(window.innerHeight > 0) ? window.innerHeight : screen.height; 
		 var relheight=(height-232)/2;
		$('#cd-popup2').addClass('is-visible');
		$("#relheight2").css('margin-top',relheight);
	});
	//close popup
	$('.cd-popup').on('click', function(event){
		if( $(event.target).is('.cd-popup-close') || $(event.target).is('.cd-popup') || $(event.target).is('.tck-close')) {
			event.preventDefault();
			$(this).removeClass('is-visible');
		}
	});
	//close popup when clicking the esc keyboard button
	$(document).keyup(function(event){
    	if(event.which=='27'){
    		$('.cd-popup').removeClass('is-visible');
	    }
    });
